﻿using System.Web;
using System.Web.Optimization;

namespace BlogWeb
{
    public class BundleConfig
    {
        // 有关捆绑的详细信息，请访问 https://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate*"));

            // 使用要用于开发和学习的 Modernizr 的开发版本。然后，当你做好
            // 生产准备就绪，请使用 https://modernizr.com 上的生成工具仅选择所需的测试。
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/respond.js"));

            bundles.Add(new ScriptBundle("~/Content/admin/js/sdmenu").Include(
                    "~/Content/admin/js/sdmenu.js"));
            //UEditor脚本
            bundles.Add(new ScriptBundle("~/UEditor/Config").Include(
                    "~/UEditor/ueditor.config.js",
                    "~/UEditor/ueditor.all.js"));
            bundles.Add(new ScriptBundle("~/UEditor/uploadimg").Include(
                    "~/UEditor/uploadimg.js"));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/site.css"));

            bundles.Add(new StyleBundle("~/Content/admin/css/alogin").Include(
                        "~/Content/admin/css/alogin.css"));
            bundles.Add(new StyleBundle("~/Content/admin/css/css").Include(
                       "~/Content/admin/css/css.css"));
            bundles.Add(new StyleBundle("~/Content/admin/css/main").Include(
                       "~/Content/admin/css/main.css"));
            bundles.Add(new StyleBundle("~/Content/admin/css/maininfo").Include(
                       "~/Content/admin/css/maininfo.css"));
            bundles.Add(new StyleBundle("~/Content/admin/css/mainlist").Include(
                       "~/Content/admin/css/mainlist.css"));
            bundles.Add(new StyleBundle("~/Content/admin/css/maindetails").Include(
                       "~/Content/admin/css/maindetails.css"));
        }
    }
}
